<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
    String errorInfo=request.getParameter("errorInfo");
    String userid=(String)session.getAttribute("userid"); 
    if(userid!=null&&!userid.trim().equals("")){
        response.sendRedirect("menu.action");
    }
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>

        <script language="JavaScript" type="text/javascript">
            var errorInfo='<%=errorInfo%>';

            if(errorInfo=='1'){
                alert("密码错误！")
            }else if(errorInfo=="2"){
                alert("该用户不存在！")
            }else if(errorInfo=="3"){
                alert("系统错误!");
            }
            function mysubmit() {
                if (document.getElementById("username").value == "" || document.getElementById("password").value == "")
                {
                    alert("用户名密码不能为空！");
                    return false;
                }
            }
        </script>
        <title>系统登录</title>
        <style>
            *{font-size:9pt;font-family:宋体;color:#333333}
            body{
                BACKGROUND-IMAGE: url('images/login_bg.jpg');
                BACKGROUND-POSITION: 0% 0%;
            }
            .button{
                BACKGROUND-IMAGE: url('images/login_button_bg.gif');
                border:1px solid #7C96B6;
                background-color:white;
                width:50;height:18;
                padding-top:1px;
            }
            a{TEXT-DECORATION: none;}
        </style>
    </head>
    <body text="#000000" bgcolor="#FFFFFF" bgcolor="#C1D5F5" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" scroll="no" onkeydown="//if(event.keyCode==113 &amp; event.ctrlKey)document.forms[0].People.style.display=&quot;&quot;;
//if(event.keyCode==13)document.all.Login.click();" onload="//以下代码解决在Domino中注销后仍能访问别的系统的问题
          ">
        <form  method="post" action="do-login.jsp" >
            <div style="display:none">
            </div>
            <table width="1000" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="250" height="200" background="images/login_01.jpg"></td>
                    <td width="250" background="images/login_02.jpg"></td>
                    <td width="250" background="images/login_03.jpg"></td>
                    <td width="250" background="images/login_04.jpg"></td>
                </tr>
                <tr>
                    <td height="200" background="images/login_05.jpg"></td>
                    <td background="images/login_06.jpg"></td>
                    <td background="images/login_07.jpg"></td>
                    <td background="images/login_08.jpg"></td>
                </tr>
                <tr>
                    <td height="200" background="images/login_09.jpg"></td>
                    <td background="images/login_10.jpg"></td>
                    <td background="images/login_11.jpg"></td>
                    <td background="images/login_12.jpg"></td>
                </tr>
            </table>
            <table border="0" cellspacing="0" cellpadding="0" style="position:absolute;top:5px;left:5px">
                <tr>

                    <td style="padding-left:15;padding-top:28" valign="top">
                       
                        <div style="width:425;height:70;"></div>
                    </td>
                </tr>
            </table>
            <table border="0" width="100%" cellspacing="0" cellpadding="0" style="position:absolute;top:202px">
                <tr>
                    <td align="center">
                        <table width="361" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed">
                            <tr>
                                <td height="4"><img style="width:357;height:4;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/login_dlg_t.png'"></td>
                                <td width="4" rowspan="3"><img style="width:4;height:189;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/login_dlg_r.png'"></td>
                            </tr>
                            <tr>
                                <td height="179" background="images/login_dlg.jpg" valign="top" bgcolor="#BBBBBB" style="padding-left:140;padding-top:55">
                                    <table width="180" border="0" cellpadding="0" cellspacing="0">
                                        <tr height="31" valign="top"> 
                                            <td align="right" style="padding-top:5px;padding-right:10px;color:white;">用户名：</td>
                                            <td  width="60" style="padding-top:2px;">
                                                <input  id="Ecom_User_ID" name="txtLogin" value="" style="width:107;height:18;border:none;"></td>
                                        </tr>
                                        <tr height="24" valign="top"> 
                                            <td align="right" style="padding-top:5px;padding-right:10px;color:white;">密&nbsp;&nbsp;码：</td>
                                            <td width="60" style="padding-top:2px;">
                                                <input  id="Ecom_Password" name="txtPassword" value="" type="password" style="width:107;height:18;border:none;" ></td>
                                        </tr>
                                        <tr height="36"> 
                                            <td colspan="2" align="right" style="padding-right:30px" valign="bottom">

                                                <input type="submit"  value=" 登录 " >
                                                &nbsp;&nbsp;
                                                <input type="reset"  value=" 取消 " >
                                            </td>
                                        </tr>
                                    </table> 

                                </td>
                            </tr>
                            <tr>
                                <td height="8">
                                    <img style="width:359px;height:2px;filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=scale, src='images/login_dlg_b.png'"></td>
                            </tr>
                            <tr>
                                <td height="25" width="250" valign="bottom" align="center" style="padding-right:10px"></td>
                            </tr>

                            <td height="25" valign="bottom" align="center">新版本只支持HTML5浏览器，推荐使用<a href="<%=basePath%>explore/chrome.exe" target="_blank">Chrome浏览器(下载)</a></td>
                            <td></td>
                        </table>
                    </td>
                </tr>
            </table>
            <table border="0" width="100%" cellspacing="0" cellpadding="0" style="position:absolute;top:540px">
                <tr>
                    <td align="center">仪征市供电公司版权所有 Copyright @ 2003-2014 Yangzhou Power Supply Corpration All right reserved</td>
                </tr>

                <tr>
                    <td align="center"><br><h3>仪征市供电公司办公室制作</h3></td>
                </tr>
            </table>
        </form>
    </body>
</html>
